/*
 * @Description:
 * 
 * @Author: rendc
 * 
 * @Date: 2025-08-19 11:21:51
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2025-08-19 11:23:57
 */
// 1. 创建 Runnable 接口 的实现类
public class MyRunnable implements Runnable {

  // 2. 重写 run 方法
  @Override
  public void run() {
    String name = Thread.currentThread().getName();
    for (int i = 0; i < 10; i++) {
      System.out.println("线程：" + name + ":" + i);
    }
  }
}